Skip to content

Make Bogosort in Nim more idiomatic #783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

berquist
Copy link
Member

@berquist berquist commented Oct 28, 2020

  • func signifies that the procedures have no side effects: they are proper functions.
  • Fix indentation to be 2 spaces instead of 4.
  • Use the implicit result return variable instead of explicit returns.
  • when isMainModule behaves the same way as if __name__ == "__main__" in Python.

@berquist berquist added Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.) Hacktoberfest The label for all Hacktoberfest related things! hacktoberfest-accepted labels Oct 28, 2020
@leios leios merged commit 0ca5ac6 into algorithm-archivists:master Nov 11, 2020
@berquist berquist deleted the nim-cleanup-bogosort branch September 6, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest The label for all Hacktoberfest related things! hacktoberfest-accepted Implementation Edit This provides an edit to an algorithm implementation. (Code and maybe md files are edited.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants